package com.pap.datas.area.agent.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pap.base.service.impl.PapBaseServiceImpl;
import com.pap.datas.agent.area.IBaseAreaAgent;
import com.pap.datas.agent.area.dto.BaseAreaLeafDTO;
import com.pap.datas.agent.area.dto.BaseAreaTreeNodeVO;
import com.pap.datas.area.auto.entity.BaseArea;
import com.pap.datas.area.auto.mapper.BaseAreaMapper;

@Transactional
@Service("baseAreaAgent")
public class BaseAreaAgentImpl extends PapBaseServiceImpl<BaseArea> implements IBaseAreaAgent {

	@Autowired
	private BaseAreaMapper baseAreaMapper;
	
	@Override
	public List<BaseAreaTreeNodeVO> baseAreaTreeJson() {
		return baseAreaMapper.baseAreaTreeJson();
	}

	@Override
	public List<BaseAreaLeafDTO> baseAreaLeafJson(String parentId) {
		return baseAreaMapper.baseAreaLeafJson(parentId);
	}

}
